import { ApiImpl } from 'message-lite';
import { TimerService } from './define';

@ApiImpl()
export class TimerImplService extends TimerService {
    timeout(time = 0): Promise<void> {
        return new Promise<void>((resolve) => {
            setTimeout(resolve, time);
        });
    }
}
